import Vue from 'vue'
import axios from './aixos'
import App from './App'
import Requset from './requset'
import router from './router'
import store from './store'
import iView from 'iview'
import global_ from './libs/baseUrl.js'
import Api from './libs/api'
import 'iview/dist/styles/iview.css'
import '../style/styls.css'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.prototype.GLOBAL = global_
axios.defaults.baseURL=global_.BASE_URL
Vue.http = Vue.prototype.$http = axios
Vue.$request = Vue.prototype.$requset = Requset
Vue.prototype.$Api = Api
Vue.config.productionTip = false
Vue.use(iView)


/* eslint-disable no-new */
let vue = new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')

vue.$Message.config({
  top: 150,
  duration: 3
})